package com.sanyou.mapper;

import com.sanyou.pojo.Equipment;
import com.sanyou.pojo.vo.EquipmentVo;
import com.sanyou.utils.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EquipmentMapper extends MyMapper<Equipment> {
    List<EquipmentVo> query(@Param("equip") EquipmentVo equipmentVo);
    List<EquipmentVo> querySearch(@Param("equip") EquipmentVo equipmentVo);

    List<EquipmentVo> getFactoryList();

    List<EquipmentVo> getSubFactoryList(String factoryId);

    List<EquipmentVo> getEquipmentFactoryList();

    /**
     * 根据用户id查找其拥有查看权限的所有设备
     * @param userId
     * @return
     */
    List<Equipment> getEquipmentByUserId(String userId,String equipType);

    List<Equipment> getEquipmentFactoryListbySubFac(String subFacId);
}
